package com.gjy.test.other;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-02-20 10:55:14
 */
public class T9 {

    public static void main(String[] args) {
        a();
        System.gc();
    }

    private static void a() {
        StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
        for (StackTraceElement element : stackTrace) {
            System.out.println("element = " + element);
        }
        while (true){

        }
    }
}
